<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    if (80 == request.getServerPort())
    {
        basePath = request.getScheme() + "://"
                + request.getServerName() + path + "/";
    }
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("Expires", 0);
    response.setHeader("Cache-Control",
            "no-store,no-cache,must-revalidate");
%>
<div style="border-top: 1px dashed #6c6c6c;">
	<%if(!"1".equals(request.getAttribute("page").toString())){ %>
		<div class="squaredance" onclick="fenye('./<%=request.getAttribute("type") %>.action?page=<%=Integer.parseInt(request.getAttribute("page").toString()) - 1 %>&pageCount=<%=request.getAttribute("pageCount") %>&key=<%=request.getAttribute("keycode") %>')"><span><<</sapn></div>
	<%} %>
	
	<% for(int i=0;i< Integer.parseInt(request.getAttribute("pageCount").toString());i++)
    {
		if(Integer.parseInt(request.getAttribute("page").toString()) == (i+1))
		{
    %>
    	<div class="squaredance weitiao" style="color:red;"><span><%=i+1 %></span></div>
    <% }else{
    %>
    	<div onclick="fenye('./<%=request.getAttribute("type") %>.action?page=<%=i+1 %>&pageCount=<%=request.getAttribute("pageCount") %>&key=<%=request.getAttribute("keycode") %>');" class="squaredance weitiao"><span><%=i+1 %></span></div>
    <%}} %>
    
    <%if(!request.getAttribute("pageCount").equals(request.getAttribute("page"))){ %>
		<div class="squaredance" onclick="fenye('./<%=request.getAttribute("type") %>.action?page=<%=Integer.parseInt(request.getAttribute("page").toString()) + 1 %>&pageCount=<%=request.getAttribute("pageCount") %>&key=<%=request.getAttribute("keycode") %>')"><span>>></span></div>
	<%} %>
</div>